package com.nifostasky.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import lombok.Data;

/**
 * 菜单管理(SysMenu)表实体类
 *
 * @author makejava
 * @since 2022-03-18 14:14:08
 */
@Data
@TableName(value = "sys_menu")
public class SysMenu implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "menu_id", type = IdType.AUTO)
    private Long menuId;


    /**
    *父菜单ID，一级菜单为0
    */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
    *菜单名称
    */
    @TableField(value = "name")
    private String name;

    /**
    *菜单URL
    */
    @TableField(value = "url")
    private String url;

    /**
    *授权(多个用逗号分隔，如：user:list,user:create)
    */
    @TableField(value = "perms")
    private String perms;

    /**
    *类型   0：目录   1：菜单   2：按钮
    */
    @TableField(value = "type")
    private Integer type;

    /**
    *菜单图标
    */
    @TableField(value = "icon")
    private String icon;

    /**
    *排序
    */
    @TableField(value = "order_num")
    private Integer orderNum;

}
